rem ---------- 先杀死 当前 正占用818端口的 先前跑起来的 任务
setlocal enabledelayedexpansion
set port=70
for /f "tokens=1-5" %%a in ('netstat -ano ^| find ":%port%"') do (
    if "%%e%" == "" (
        set pid=%%d
    ) else (
        set pid=%%e
    )
    echo !pid!
    taskkill /f /pid !pid!
)
rem ---------- 杀进程 结束

rem 一定要切换到目标目录
rem 修改 src\main\resources\application.yml中的activie.profile=pro
@echo off
git pull
echo "--- Want deploy these git files? if YES,press ENTER key to continue,othewise press CTRL+C to exit."
pause

rem call mvn package -Dmaven.test.skip=true
rem java -jar -Xms64m -Xmx200m target\video-ai-1.0.jar

mvn spring-boot:run -Dspring-boot.run.profiles=dev -Dmaven.test.skip=true -Dspring-boot.run.jvmArguments="-Xms1024m -Xmx4096m"

rem java -jar -Xms64m -Xmx200m -XX:PermSize=64m -Xss256k -XX:ParallelGCThreads=2 -Djava.compiler=NONE target\AIS-stationM-2.0.0.jar --server.port=8060 server.tomcat.threads.max=10 

